package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学员的课程信息对象 sys_course_student
 * 
 * @author YJF
 * @date 2023-05-18
 */
public class SysCourseStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 课程编号 */
    @Excel(name = "课程编号")
    private Long courseNo;

    /** 学员ID，这里是user表的userId，和student无关系 */
    @Excel(name = "学员ID")
    private Long studentId;

    @Excel(name = "学员ID")
    private Long userId;

    /** 已学时长 */
    @Excel(name = "已学时长")
    private Long studyTime;

    /** 完成状态 */
    @Excel(name = "完成状态", readConverterExp = "1=未完成,2=进行中，3=已完成")
    private Integer studyStatus;

    /** 学习进度，百分比 */
    @Excel(name = "学习进度")
    private String studySchedule;

    /** 学员昵称 */
    @Excel(name = "学员昵称")
    private String nickName;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 时长 */
    @Excel(name = "时长")
    private Long timeLength;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /** 最后学习时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后学习时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastTime;

    /** 课后考试成绩 */
    @Excel(name = "课后考试成绩 ")
    private Long scores;

    /** 删除标志 */
    private String delFlag;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getScores() {
        return scores;
    }

    public void setScores(Long scores) {
        this.scores = scores;
    }

    public Integer getStudyStatus() {
        return studyStatus;
    }

    public void setStudyStatus(Integer studyStatus) {
        this.studyStatus = studyStatus;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(Long courseNo) {
        this.courseNo = courseNo;
    }

    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setStudyTime(Long studyTime) 
    {
        this.studyTime = studyTime;
    }

    public Long getStudyTime() 
    {
        return studyTime;
    }
    public void setStudySchedule(String studySchedule) 
    {
        this.studySchedule = studySchedule;
    }

    public String getStudySchedule() 
    {
        return studySchedule;
    }
    public void setTimeLength(Long timeLength) 
    {
        this.timeLength = timeLength;
    }

    public Long getTimeLength() 
    {
        return timeLength;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }
    public void setLastTime(Date lastTime) 
    {
        this.lastTime = lastTime;
    }

    public Date getLastTime() 
    {
        return lastTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseNo", getCourseNo())
            .append("studentId", getStudentId())
            .append("studyTime", getStudyTime())
            .append("studySchedule", getStudySchedule())
            .append("timeLength", getTimeLength())
            .append("beginTime", getBeginTime())
            .append("finishTime", getFinishTime())
            .append("lastTime", getLastTime())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
